package cn.wonderland.pet.domain;


import cn.wonderland.base.domain.BaseDomain;
import cn.wonderland.org.domain.Shop;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 *
 * @author wonderland
 * @since 2023-01-08
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Pet extends BaseDomain {


    private String name;
    private BigDecimal saleprice;
    private BigDecimal costprice;
    private String resources;
    /**
     * 状态：0下架，1上架
     */
    private Integer state;
    /**
     * 类型id
     */
    private Long typeId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date offsaletime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date onsaletime;
    private Date createtime;
    /**
     * 店铺Id 如果被领养店铺id为null
     */
    private Long shopId;
    /**
     * 如果被领养为领养用户id
     */
    private Long userId;
    private Long searchMasterMsgId;

    // 品种
    private PetType type;
    // 店铺
    private Shop shop;
    // 宠物详情
    private PetDetail detail;
}
